package com.ruoyi.business.api;


import com.ruoyi.business.api.domain.Coupon;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteCouponService", value = "ruoyi-business")
public interface RemoteCouponService {
    @GetMapping("/coupon/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    @PutMapping("/coupon")
    public AjaxResult edit(@RequestBody Coupon coupon, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
